package com.wmm.fast.main.feign;

import org.springframework.stereotype.Component;

import com.wmm.common.bean.ResponseResultDTO;
import com.wmm.common.bean.user.UserDTO;
import com.wmm.common.enums.EWarning;

/**   
 * @ClassName:  UserInterfaceImpl   
 * @Description:TODO UserService统一请求熔断降级处理类
 * @author: wangzun
 * @date:   2018年3月20日 下午11:04:57     
 */
@Component
public class UserInterfaceImpl  implements UserInterface{
	@Override
	public ResponseResultDTO<UserDTO> find(String userId) {
		ResponseResultDTO<UserDTO> response = new ResponseResultDTO<UserDTO>();
		response.setCode(EWarning.Busy.getValue());
		response.setMessage(EWarning.Busy.getName());
		return response;
	}
	
}
